package com.wujie.section12;

/**
 * Created by wujieliu on 2017/11/1.
 */
//适配器模式，鹅适配器，适配成鸭子
public class GooseAdapter implements Quackable {
    Goose goose;

    public GooseAdapter(Goose goose) {
        this.goose = goose;
    }

    public void quack() {
        goose.honk();
    }

    public void registerObserver(Observer observer) {

    }

    public void notifyObservers() {

    }
}
